from myelin.server.nodetype.Document import Document
from myelin.lib import Ids
from myelin.lib import DateTime

import Constants

from nodetypes import config

class Document(Document):
    
    extensionsMap = Constants.EXTENSIONS_MAP
    
    newUri= staticmethod(Ids.NewBaseUuid)
    newDateTimeString = staticmethod(DateTime.ToString)
    newServiceHandlerUri = staticmethod(lambda action, name, ns: u'%s%s#%s()' % (ns, name, action))
    
    methodsToImt = config.METHODS_TO_IMT
            
# cleanup
del Constants, \
    Ids, \
    DateTime, \
    config